﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using LibFriesland_Campina_CRM;

public partial class ReportTest : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        DateTime fromDate = new DateTime(2012, 7, 13);
        DateTime toDate = new DateTime(2012, 7, 17);
        LibFriesland_Campina_CRM.Dataset.DatasetSupSale ds = DalInvoiceDetail.getSalebyDateSup(fromDate, toDate, "SP5059064");
        //LibFriesland_Campina_CRM.Report.ReportSupSale report = new LibFriesland_Campina_CRM.Report.ReportSupSale();
        
        //report.SetDataSource(ds); //Gan nguon cho bao cao
        //myCrv.ReportSource = report;
        //myCrv.DataBind();

        //LibFriesland_Campina_CRM.Report.XtraReport1 report = new LibFriesland_Campina_CRM.Report.XtraReport1();
        //report.DataSource = ds;
        //report.FillDataSource();

        //ReportViewer1.Report = report;
        //ReportViewer1.DataBind();
    }
}